import QtQuick 1.0

Rectangle {
    id: blurScreen
    anchors.fill: parent
    color: root.constants.defaultForegroundColor
    state: "off"

    MouseArea {
        id: blurScreenMouseArea
        anchors.fill: parent

        onPressed: {
            root.closeDialog();
        }
    }

    states: [
        State {
            name: "on"

            PropertyChanges {
                target: blurScreen
                opacity: 0.5
            }
        },
        State {
            name: "off"

            PropertyChanges {
                target: blurScreen
                opacity: 0.0
            }
        }
    ]

    transitions: [
        Transition {
            NumberAnimation {
                properties: "opacity"
                duration: constants.shortAnimationDuration
            }
        }
    ]
}

// End of file.
